public class 课堂作业2 {
    public static void main(String[] args) {
        boolean a = !true;
        System.out.println(a);
        boolean b = true & false;
        System.out.println(b);
        boolean c = false | true;
        System.out.println(c);
        boolean d =(true & false) | true;
        System.out.println(d);
        boolean e = false && (true | false);
        System.out.println(e);
        boolean f = !!true || false;
        System.out.println(f);
        boolean g = true && false && true;
        System.out.println(g);
        boolean h = false | false | true;
        System.out.println(h);
        byte i = 10;
        System.out.println(i);
        i += 13.14;
        System.out.println(i);
        i -= 5.2;
        System.out.println(i);
        int count = 0;
        count++;
        count++;
        count++;
        System.out.println("当前点赞人数为："+count);
        count--;
        System.out.println("当前点赞人数为："+count);
        int price =5000;
        System.out.println("当前手机的价格是符合用户要求："+(price >= 4000 && price <= 6000));
        int year =2050;
        System.out.println("2025年是否为闰年："+(year/4==0 && year%100!=0 ||year/400==0));
        int j =5;
        int k =10;
        int jk =j>k?j:k;
        System.out.println(jk);
        int l =5;
        int m = 10;
        int n = 20;
        int lmn =l>m?l:m;
        lmn =lmn>n?lmn:n;
        System.out.println(lmn);
        int l1 =100;
        long l2 =l1;
        float l3 =l2;
        System.out.println(l3);
        double x = 3.14159;
        int y = (int) x;
        byte z = (byte) 130;
        System.out.println("y = " + y);
        System.out.println("z = " + z);
        short s1 = 10;
        short s2 = 20;
        short s3 = (short) (s1 + s2);
        System.out.println(s3);
    }
}
